package com.yunzheng.modoules.enrollAndLogin.login.service;

import java.sql.SQLException;

public interface UserService {

    /**
     * 是否能够登录
     * @param phone_num
     * @param password
     * @return
     * @throws SQLException
     */
    boolean isLogin(String phone_num,String password) throws Exception;

    /**
     * 用户名是否存在，用于判断手机号码是否在数据库里面
     * @param phone_num
     * @return
     * @throws Exception
     */
    boolean isExist(String phone_num) throws Exception;


    // boolean isEnroll(String phone_num,String password) throws Exception;*/

    /**
     *登录时的错误提示
     * @param phone_num
     * @param password
     * @return
     * @throws Exception
     */
    String getLoginMsg(String phone_num,String password) throws Exception;

    // String getRegisterMsg(String phone_num,String password) throws Exception;

}

